package cloud.keveri.chat4j.provider.chatgpt.model;

import cloud.keveri.chat4j.api.Response;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * Chatgpt 响应
 * <p>
 * 作者：沈自在
 **/
@Data
public class ChatgptCompletionResponse implements Response, Serializable {

    @Serial
    private static final long serialVersionUID = -2346029623781718832L;

    /**
     * ID
     */
    private String id;

    /**
     * 对象
     */
    private String object;

    /**
     * 模型
     */
    private String model;

    /**
     * 对话
     */
    private List<ChatChoice> choices;

    /**
     * 创建
     */
    private long created;

    /**
     * 损耗
     */
    private Usage usage;

    /**
     * 配置
     */
    @JsonProperty("system_fingerprint")
    private String systemFingerprint;
}
